<template>
  <u-loadmore
    :status="status"
    :nomoreText="nomoreText"
    :loadingText="loadingText"
    :loadingIcon="loadingIcon"
    :line="line"
    fontSize="16"
    iconSize="18"
    height="30"
    lineColor="#999"
  />
</template>
<script setup lang="ts">
import { computed } from 'vue';

const props = defineProps({ config: Object });

const status = computed(() => props.config?.status ?? 'loading');
const loadingIcon = computed(() => props.config?.loadingIcon ?? 'spinner');
const loadingText = computed(() => props.config?.loadingText ?? '正在加载...');
const nomoreText = computed(() => props.config?.nomoreText ?? '加载完成');
const line = computed(() => props.config?.line ?? true);
</script>